package com.zhima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhima.entity.OjQuestionBindContest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhima
 * @since 2024-01-18
 */
@Mapper
public interface OjQuestionBindContestMapper extends BaseMapper<OjQuestionBindContest> {

    boolean decreaseQuestionIndex(@Param("contestId") Long contestId, @Param("questionIndex") Integer questionIndex);

    boolean changeQuestionIndex(@Param("contestId") Long contestId, @Param("questionNumber") String questionNumber, @Param("magnification") Integer magnification, @Param("questionIndex") int questionIndex);
}
